<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <include file="Public:header" />
  <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <include file="Public:body_top" />

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar hidden-xs">
        <div class="menu">
          <dl>
            <dt><i class="cm-order"></i>小程序</dt>
            <dd><a href="{:U('Apps/xcx_edit')}">小程序配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=xcx_msg_edit">小程序模板消息</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=storage">存储配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=sms">短信配置</a></dd>
            <dd><a href="{:U('Mode/index')}">首页模式图标</a></dd>
            <!-- <dd class="active"><a href="{:U('Apps/xcx_edit')}&tpl=payment">结算配置</a></dd> -->
          </dl>
          <dl>
            <dt><i class="cm-advert"></i>广告管理</dt>
            <dd><a href="{:U('Adverts/index')}">广告列表</a></dd>
            <dd><a href="{:U('Adverts/add')}">新建广告</a></dd>
          </dl>
          <dl>
            <dt><i class="icon-uniE611"></i>帮助管理</dt>
            <dd><a href="{:U('Helps/index')}">帮助列表</a></dd>
            <dd><a href="{:U('Helps/add')}">新建帮助</a></dd>
          </dl>
        </div>
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="main-hd">
          <h5>{$title}</h5>
        </div>

        <div class="main-bd">
          <div class="form-box">
            <form class="form-horizontal" method="post" action="{:U('Apps/xcx_update')}">
              <div class="form-group">
                <label class="col-sm-2 control-label">当前储存类型</label>
                <div class="col-sm-3">
                  <select name="alipay_type" class="form-control">
                    <option value="1" <if condition="$app.alipay_type eq 1">selected</if>>沙箱环境</option>
                    <option value="2" <if condition="$app.alipay_type eq 2">selected</if>>正式环境</option>
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">支付宝打款 <br/>(rsaPrivateKey)</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="alipay_rsaprivatekey" id="alipay_rsaprivatekey" value="{$app.alipay_rsaprivatekey}">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">支付宝打款<br/>(alipayrsaPublicKey)</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="alipay_rsapublickey" id="alipay_rsapublickey" value="{$app.alipay_rsapublickey}">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">支付宝打款AppId</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="alipay_appid" id="alipay_appid" value="{$app.alipay_appid}">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">最低（自动）打款金额</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="alipay_max_amount" value="{$app.alipay_max_amount}">
                </div>
              </div>

              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <input type="hidden" name="id" value="{$app.id}">
                  <input type="hidden" name="tpl" value="{$tpl}">
                  <input type="submit" class="btn btn-primary" value="提交">
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>

</html>